﻿using DataChangeTools.Api.Models;
using RestSharp;
using System.Windows.Controls;

namespace DataChangeTools.Api.Service
{
    public interface IBaseService<TEntity> where TEntity : class
    {
        Task<HttpResponseDTO<TEntity>> AddAsync(TEntity entity);

        Task<HttpResponseDTO<TEntity>> UpdateAsync(TEntity entity);

        Task<HttpResponseDTO> DeleteAsync(int id);

        Task<HttpResponseDTO<TEntity>> GetFirstOfDefaultAsync(int id);

        Task<HttpResponseDTO<PagedList<TEntity>>> GetAllAsync(Models.Page parameter);


    }
}
